package org.ice4apps.master.dao;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * SystemAdmin entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "system_admin", catalog = "icemaster", uniqueConstraints = @UniqueConstraint(columnNames = "username"))
public class SystemAdmin implements java.io.Serializable {
    // Fields
    private String id;
    private String name;
    private String username;
    private String password;
    private Long   creationdate;
    private Long   updationdate;

    // Constructors
    /** default constructor */
    public SystemAdmin () {
    }

    /** minimal constructor */
    public SystemAdmin (String id,
                        String name,
                        String username,
                        String password,
                        Long creationdate) {
        this.id = id;
        this.name = name;
        this.username = username;
        this.password = password;
        this.creationdate = creationdate;
    }

    /** full constructor */
    public SystemAdmin (String id,
                        String name,
                        String username,
                        String password,
                        Long creationdate,
                        Long updationdate) {
        this.id = id;
        this.name = name;
        this.username = username;
        this.password = password;
        this.creationdate = creationdate;
        this.updationdate = updationdate;
    }

    // Property accessors
    @Id
    @Column(name = "id", unique = true, nullable = false, length = 36)
    public String getId () {
        return this.id;
    }

    public void setId (String id) {
        this.id = id;
    }

    @Column(name = "name", nullable = false, length = 36)
    public String getName () {
        return this.name;
    }

    public void setName (String name) {
        this.name = name;
    }

    @Column(name = "username", unique = true, nullable = false, length = 36)
    public String getUsername () {
        return this.username;
    }

    public void setUsername (String username) {
        this.username = username;
    }

    @Column(name = "password", nullable = false)
    public String getPassword () {
        return this.password;
    }

    public void setPassword (String password) {
        this.password = password;
    }

    @Column(name = "creationdate", nullable = false)
    public Long getCreationdate () {
        return this.creationdate;
    }

    public void setCreationdate (Long creationdate) {
        this.creationdate = creationdate;
    }

    @Column(name = "updationdate")
    public Long getUpdationdate () {
        return this.updationdate;
    }

    public void setUpdationdate (Long updationdate) {
        this.updationdate = updationdate;
    }
}